package com.goods.shop.test;

public class ForLoopCalculator implements Calculator {
    @Override
    public long sum(int[] datas) {
        long total=0;
        for(int i:datas){
            total+=i;
        }
        return total;
    }
}
